﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ObjectEditor.Editor
{
    public class MessageEventArgs : EventArgs
    {
        public MessageEventArgs(string title,object data)
        {
            Title = title;
            Data = data;
        }

        public string Title { get; private set; }
        public object Data { get; private set; }
    }

    public interface IMessenger
    {
        event EventHandler<MessageEventArgs> MessageSent;
        void MessageAvailable(object sender,MessageEventArgs data);
    }
}
